<template>
  <!-- 一级布局容器 -->
  <app-header-sticky></app-header-sticky>

  <!-- 顶部通栏 -->
  <!-- <nav>顶部通栏</nav> -->
  <app-topnav></app-topnav>

  <!-- 头部区域 -->
  <!-- <header></header> -->
  <app-header></app-header>

  <!-- 二级路由容器 -->
  <div class="main">
    <router-view></router-view>
  </div>

  <!-- 底部区域 -->
  <!-- <footer></footer> -->
  <app-footer></app-footer>
</template>

<script>
import AppTopnav from '@/components/app-topnav'
import AppHeader from '@/components/app-header'
import AppFooter from '@/components/app-footer'
import AppHeaderSticky from '@/components/app-header-sticky'
import { useStore } from 'vuex'
export default {
  name: 'My-Layout',

  components: {
    AppTopnav,
    AppHeader,
    AppFooter,
    AppHeaderSticky
  },

  setup () {
    const store = useStore()
    store.dispatch('category/getList')
  }

}
</script>

<style lang="less" scoped></style>
